﻿using Coldairarrow.Entity;
using Coldairarrow.Util;
using ProtoBuf;
using System;

namespace Coldairarrow.Api_Dev.Controllers.Protobuf_Test.DTOModels
{
    [Map(typeof(Base_UserDTO))]
    [ProtoContract]
    public class Protobuf_UserDTO
    {

        [ProtoMember(1)]
        public string Id { get; set; }

        [ProtoMember(2)]
        public bool Deleted { get; set; }

        [ProtoMember(3)]
        public string UserName { get; set; }

        [ProtoMember(4)]
        public string RealName { get; set; }

        [ProtoMember(5)]
        public string Password { get; set; }

        [ProtoMember(6)]
        public int Sex { get; set; }

        [ProtoMember(7)]
        public DateTime? Birthday { get; set; }

        [ProtoMember(8)]
        public string DepartmentId { get; set; }

        [ProtoMember(9)]
        public string PhoneNumber { get; set; }

        [ProtoMember(10)]
        public DateTime CreateTime { get; set; }

        [ProtoMember(11)]
        public DateTime? ModifyTime { get; set; }

        [ProtoMember(12)]
        public string CreatorId { get; set; }

        [ProtoMember(13)]
        public string CreatorName { get; set; }

        [ProtoMember(14)]
        public string ModifyId { get; set; }

        [ProtoMember(15)]
        public string ModifyName { get; set; }

        public string Error { get; set; }

    }
}